'use strict';
/*右侧面板组件*/

var React = require('react');

var LayoutPanelComponent = React.createClass({
      getInitialState:function(){
            return {height:(parseInt(document.documentElement.clientHeight)-85)/2};
      },
      componentDidMount:function(){
            var self = this;
            window.onresize = function(){
                  self.setState({height: (parseInt(document.documentElement.clientHeight)-85)/2});
            };
      },
      render: function() {
            return (
            	<div className="do-there-right" >
	                       	<div className="do-right-top" style={this.state}>
	                       		{this.props.topView}
	                       	</div>
	                       	<div className="do-right-bom" style={this.state}>
	                       		{this.props.bomView}
	                       	</div>
                        </div>
            );
   }
});

module.exports = LayoutPanelComponent;